const Router = require('koa-router')
const { getData,getCuntCarousel,addCarousel,editCarousel,deleteCarousel,getOneCarousel } = require('../controller/carousel.controller')
const router = new Router({prefix:'/carousel'})
const { auth } = require("../middleware/admin.middleware")
router.get('/list',getData)
router.post('/all',auth, getCuntCarousel)
router.post('/add',auth, addCarousel)
router.post('/update',auth, editCarousel)
router.post('/delete',auth, deleteCarousel)
router.post('/detail',auth, getOneCarousel)
module.exports = router